package myomi.funf;

import java.util.ArrayList;
import java.util.List;

public class Flow {
	List<Function> functions = new ArrayList<Function>();
	Context context;
	
	public void execute() {
		for (Function f: functions) {
			f.execute(context);
		}
	}
	
	public void addFunction(Function function) {
		functions.add(function);
	}
	
	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}
}
